<?php
	
	require 'config.php';
	$title = 'html5网页';

	$today_artcle = $_->articles->_select(array('id','title','cates','addtime'),array('type'=>1,'DESC'=>'addtime','LIMIT'=>'0,5'));

	$clist = $_->articles->getArticleByCates();

	$products = $_->product->getProductByCates(5);
	
	$data = simplexml_load_file('xml/index-data.xml');
	$smarty->_assign(array('title','today_artcle','clist','products','data'));

	$smarty->_display();
?>